import low from 'lowdb';
import LocalStorage from 'lowdb/adapters/LocalStorage';
import config from '@/common/config';

const adapter = new LocalStorage(`g2-${config.releases.version}`);
const db = low(adapter);

db.defaults({
  sys: {},
  database: {}
}).write();

export default db;
